'use strict'
import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import App from './App'
import goods from './components/goods/goods'
import seller from './components/seller/seller'
import ratings from './components/ratings/ratings'

Vue.use(VueRouter)
Vue.use(VueResource)
Vue.use(MintUI)

let app = Vue.extend(App)

let router = new VueRouter({
	linkActiveClass: 'active'
});

router.map({
	'/goods': {
		component: goods
	},
	'/seller': {
		component: seller
	},
	'/ratings': {
		component: ratings
	}
});

router.start(app, '#app')

router.go('/goods')
